﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AsyncPersistence.Services;
using AsyncPersistence.Entities;

namespace AsyncPersistence.Common
{
    public class SaveTask : APersistenceTask
    {
        public SaveTask(PersistableEntity entity, IPersistenceService persistanceService)
            : base(entity, persistanceService) { }

        public override void Execute()
        {
            persistanceService.Save(entity);
        }
    }
}
